package StructuralPattern.BridgePattern.shape;

import StructuralPattern.BridgePattern.color.Color;

public class Square extends Shape {
    private int side;

    public Square(int side, Color color) {
        super(color);
        this.side = side;
    }

    @Override
    public void draw() {
        color.applyColor();
        System.out.println("绘制正方形，边长为: " + side);
    }
}